<?php
	$id = $_SESSION['login_user'];
	$query = mysql_query("SELECT * FROM cart WHERE user_ID=$id");
	echo "here";
	
	while($row=mysql_fetch_array($query, MYSQL_ASSOC)) {		
		$game = mysql_query("SELECT * FROM demo WHERE demo_ID=" . $row['demo_ID']);
		$result = mysql_fetch_assoc($game);
		echo $result['demo_name'];
		echo "<br />";
	}
?>